/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author tomeu
 */
public class Booking implements Serializable {
    private int bookingid;
    private String userid;
    private int spaceid;
    private Date start_time;
    private Date end_time;
    private int pax;
    private String status;
    private Date creation_time;
    private Date cancel_time;
    private String cancel_user;
    private Date record_date;

    public Booking(int bookingid, String user, int space, Date start_time, Date end_time, int pax, String status, Date creation_time, Date cancel_time, String cancel_user, Date record_date) {
        this.bookingid = bookingid;
        this.userid = user;
        this.spaceid = space;
        this.start_time = start_time;
        this.end_time = end_time;
        this.pax = pax;
        this.status = status;
        this.creation_time = creation_time;
        this.cancel_time = cancel_time;
        this.cancel_user = cancel_user;
        this.record_date = record_date;

    }

    public int getBookingid() {
        return bookingid;
    }

    public void setBookingid(int bookingid) {
        this.bookingid = bookingid;
    }

    public Date getCancel_time() {
        return cancel_time;
    }

    public void setCancel_time(Date cancel_time) {
        this.cancel_time = cancel_time;
    }

    public String getCancel_user() {
        return cancel_user;
    }

    public void setCancel_user(String cancel_user) {
        this.cancel_user = cancel_user;
    }

    public Date getCreation_time() {
        return creation_time;
    }

    public void setCreation_time(Date creation_time) {
        this.creation_time = creation_time;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public int getPax() {
        return pax;
    }

    public void setPax(int pax) {
        this.pax = pax;
    }

    public Date getRecord_date() {
        return record_date;
    }

    public void setRecord_date(Date record_date) {
        this.record_date = record_date;
    }

    public int getSpace() {
        return spaceid;
    }

    public void setSpace(int space) {
        this.spaceid = space;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUser() {
        return userid;
    }

    public void setUser(String user) {
        this.userid = user;
    }

    @Override
    public String toString() {
        return "Booking{" + "bookingid=" + bookingid + ", user=" + userid + ", space=" + spaceid + ", start_time=" + start_time + ", end_time=" + end_time + ", pax=" + pax + ", status=" + status + ", creation_time=" + creation_time + ", cancel_time=" + cancel_time + ", cancel_user=" + cancel_user + ", record_date=" + record_date + '}';
    }

}
